<div class="Item hr">
    <div class="current">添加模型</div>
    <div class="fr"><a href="{:U('models/index')}" class="btn">返回模型列表</a></div>
</div>
<form>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
        <tr>
            <th width="100">模型名称：</th>
            <td><input id="model_name" type="text" class="input" size="20" name="model[name]" value="模型{$newid}" /> <a href="javascript:void(0)" id="check_model_name">检测是否可用</a>
            <span onclick="ShowHide('help_model_name')" class="icon-question-sign hand" title="帮助"></span> <span id="help_model_name">（不能包含特殊字符）</span>
</td>
        </tr>
        <tr>
            <th width="100">模型标识：</th>
            <td><input id="nid" type="text" class="input" size="20" name="model[nid]" value="m{$newid}" />
            <span onclick="ShowHide('help_nid')" class="icon-question-sign hand" title="帮助"></span> <span id="help_nid">（由英文、数字或下划线组成）</span>
</td>
        </tr>
        <tr>
            <th width="100">附加表：</th>
            <td><input id="addtable" type="text" class="input" size="20" name="model[addtable]" value="addon{$newid}" /> <a href="javascript:void(0)" id="check_tal_name">检测是否可用</a>
            <span onclick="ShowHide('help_addtable')" class="icon-question-sign hand" title="帮助"></span> <span id="help_addtable">（存放该模型的数据表名称，只能由"_"、a~z组成）</span>
            </td>
        </tr>
    </table>
</form>
<div class="commonBtnArea" >
    <button class="btn submit">提交</button>
</div>

<include file="Models/javascript" />
<script type="text/javascript">
$(function(){
    submitForm("create");
});
</script>
